import request from '@/utils/request'

// 查询用户钱包列表
export function my() {
	return request({
		url: '/wallet/wallet/my',
		method: 'get'
	})
}

// 查询用户钱包列表
export function listWallet(query) {
	return request({
		url: '/wallet/wallet/list',
		method: 'get',
		params: query
	})
}

// 查询用户钱包详细
export function getWallet(id) {
	return request({
		url: '/wallet/wallet/' + id,
		method: 'get'
	})
}

// 新增用户钱包
export function addWallet(data) {
	return request({
		url: '/wallet/wallet',
		method: 'post',
		data: data
	})
}

// 修改用户钱包
export function updateWallet(data) {
	return request({
		url: '/wallet/wallet',
		method: 'put',
		data: data
	})
}

// 删除用户钱包
export function delWallet(id) {
	return request({
		url: '/wallet/wallet/' + id,
		method: 'delete'
	})
}